package com.aynu.gulimall.ware.feign;

import com.aynu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author mj
 * @version 1.0
 * @date 2021/4/10 21:18
 */
@FeignClient("gulimall-order")
public interface OrderFeignService {

    /**
     * 根据订单id，查询订单信息
     * @param orderSn
     * @return
     */
    @GetMapping("/order/order/status/{orderSn}")
    public R getOrderStatus(@PathVariable String orderSn);
}
